<!DOCTYPE html>
<html>
<head>
  <title>示例</title>
</head>
<body>
  <button id="myButton">点击我</button>

  <script>
    function handleClick(event, message) {
      console.log(`点击事件触发！消息：${message}`);
      console.log('事件对象：', event);
      console.log('this 值：', this);
    }

    document.getElementById('myButton').addEventListener('click', function(event) {
      const args = ['Hello, World!'];
    //   console.log(typeof (...args))
      handleClick.call(this || null, event, ...args);
    //   这里的handler就是handleClick
    });
  </script>
</body>
</html>
